import Vue from 'vue'
import Router from 'vue-router'
const HelloWorld = () => import('@/components/HelloWorld')
const Community = () => import('@/views/Community')
Vue.use(Router)
export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld,
      meta: {
        // keepAlive: true // true 表示需要使用缓存
      }
    }, {
      path: '/community',
      name: 'Community',
      component: Community
    }
  ]
})
